<%-- 
    Document   : listar_clientes
    Created on : 27/03/2013, 15:03:48
    Author     : Leonardo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Listar Clientes</title>
    </head>
    <body>
        <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>        
	<jsp:useBean id="dao" class="modelo.dao.ClienteDAO"/>        
        <table border="1">
            <c:forEach var="curso" items="${dao.listar}" varStatus="id">
                <tr bgcolor="${id.count % 2 == 0 ? 'aaee88' : 'ffffff' }">
                    <td>${cliente.id}</td>
                    <td>${cliente.nome}</td>                    
                    <td>${cliente.email}</td>                    
                    <td>${cliente.dataNascimento}</td>                    
                </tr>
            </c:forEach>
        </table>     
        
    </body>
</html>
